package com.yunlinker.asba.utils.boardcastutils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.yunlinker.asba.utils.logutils.MyLogUtils;


/**
 * Created by Administrator on 2017/4/11 0011.
 */

public class MyExceptionLogBoardCast extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        MyLogUtils.collectDeviceInfo(context);
        MyLogUtils.saveCrashInfo2File((Throwable) intent.getSerializableExtra("exception"));
    }
}
